#include "caudiocontroldevice.h"

QStringList DEVICE_OPERATION::LIST_AREA_NAME = (QStringList()  << "玄关" << "客厅" << "餐厅" << "厨房" << "主卧"
                              << "客卧" << "次卧" << "阳台" << "吧台" << "淋浴间" << "马桶间"
                              << "洗手间" << "卫生间" << "洗手台" << "衣帽间" << "书房" );

DEVICE_OPERATION::DEVICE_OPERATION(QObject *parent) : QObject(parent)
{
    _audio_action_dev_all = false;
    _audio_area_action = false;
}

CAudioControlDevice::CAudioControlDevice(QObject *parent) : QObject(parent)
{

}

DEVICE_AUDIOCONTROL CAudioControlDevice::whichDevice(QString word)
{
    if(word.contains("灯")){
        return LIGHT;
    }else if(word.contains("帘")){
        return CURTAIN;
    }else if(word.contains("空调")){
        return AIR;
    }else if(word.contains("电视")){
        return TV_REMOTE;
    }else if(word.contains("音乐")){
        return MUSIC_REMOTE;
    }else if(word.contains("门")){
        return DOOR;
    }

    return UNKNOW;
    //LIGHT,CURTAIN,AIR,TV_REMOTE,MUSIC_REMOTE,DOOR
}
